'''
Created on Mar 4, 2012

@author: Hardeep
'''

import Msg
import If

class ScriptBase(
        # woooooooo super huge mixin! see DivineScript_Reference.txt
        Msg._Msg,
        If._If
    ):
    '''
    The base for any script...
    '''

    name = "ScriptBase"
    commands = []
    def __init__(self):
        '''
        Constructor
        '''

        # All the commands this script has...in order
        self.commands = []

    def AsString(self):
        return self.__str__()

    def __str__(self):
        return "\n".join(self.commands)